Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 3 - QuickDraw 3D Objects / QuickDraw 3D Objects Reference
QuickDraw 3D Objects Routines / Managing Shared Objects


Q3Shared_GetType

You can use the Q3Shared_GetType function to get the type of a shared object.

TQ3ObjectType Q3Shared_GetType (TQ3SharedObject sharedObject);
sharedObject
A shared object.
DESCRIPTION
The Q3Shared_GetType function returns, as its function result, the type identifier of the shared object specified by the sharedObject parameter. If successful, Q3Shared_GetType returns one of these constants:

kQ3SharedTypeControllerState
kQ3SharedTypeDrawContext
kQ3SharedTypeFile
kQ3SharedTypeReference
kQ3SharedTypeRenderer
kQ3SharedTypeSet
kQ3SharedTypeShape
kQ3SharedTypeShapePart
kQ3SharedTypeStorage
kQ3SharedTypeString
kQ3SharedTypeTexture
kQ3SharedTypeTracker
kQ3SharedTypeViewHints
If the type cannot be determined or is invalid, Q3Shared_GetType returns the value kQ3ObjectTypeInvalid.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996